package org.codert.codertadmin.config.extend;

import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: TanJingyu
 * @create: 2021-08-18 16:06
 **/
@Configuration(proxyBeanMethods = false)
public class ObjectProviderTestConfiguration {
    @Bean(name = "one")
    public Father one() {
        return new Father("one");
    }

    @Bean(name = "two")
    public Father two() {
        return new Father("two");
    }

    @AllArgsConstructor
    public static class Father {
        private String username;

    }
}
